from multiprocessing.sharedctypes import Value


dic1={"1:":"查询联系人","2:":"插入新的联系人","3:":"删除已有联系人","4:":"输出所有联系人信息","5:":"退出"}
list3={"张三":"123","李四":"456","王五":"789","马六":"653","吴七":"336"}
print("欢迎使用个人通讯录系统")
for key,Value in dic1.items():
    print(key,Value)
for i in range(0,5):
 zhilin=int(input("请输入指令："))
 if zhilin==1:
    shuru=input("请输入联系人名字：") 
    if shuru in list3.keys():  
      print("您输入的姓名在通讯录中") 
    else:   
      print("您输入的姓名不在通讯录中")
 elif zhilin==2:
    jiaming=input("请输入联系人名字：")
    list3["id"]=jiaming
    jiadianhua=input("请输入用户联系人电话：")
    list3["vlaue"]=jiadianhua
 elif zhilin==3:
    mingzi=input("请输入联系人名字：") 
    if mingzi in list3.keys():
      del list3["mingzi"]
 elif zhilin==4:
    for key,Value in list3.items():
       print(key,Value)
 else:
   break
